var KTDCharacter = {
	convertToModelView: function(id, pseudo, avatar, age, alignement, race){
		var char_mv = {
			characterPseudo: 	pseudo,
			characterAvatar: 	avatar,
			characterAge:		age,
			characterRace:		race,
			characterAlignement:    alignement,
			characterId:            id
		}
                return char_mv;

	},
        convertArrayToModelView: function(ktdchar_arr){
            var mv = Array();
            $.each(ktdchar_arr, function(key, value){
                if(
                  key == "characterPseudo"      ||
                  key == "characterAvatar"      ||
                  key == "characterAge"         ||
                  key == "characterAlignement"  ||
                  key == "characterId"          ||
                  key == "characterRace"        ||
                  key == "characterURL"         ||
                  key == "characterStory"       ||
                  key == "characterMindDesc"    ||
                  key == "characterPhyDesc"     ||
                  key == "characterOther"       ||
                  key == "characterPNJ"         ||
                  key == "characterSwitchURL"||
                  key == "characterIsActualCharacter"){
                    mv[key] = value;
                  }

            });
            return mv;
        },
        
    };